
$(function () {
	//折线
    $('#container').highcharts({
        title: {
            text: '每日走势图',
            x: -20 //center
        },
        xAxis: {
            // categories: ['01日', '02日', '03日', '04日', '05日', '06日']
            categories: eval(a)
        },
        yAxis: {
            title: {
                text: '单位 (元)'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        credits: {
          enabled:false
		},
		exporting: {
            enabled:false
		},
        tooltip: {
            valueSuffix: ' 元'
        },
        series: [{
            name: '静态分红',
            // data: [1.4, 1.6, 2.6, 2.4, 1.0, 1.8]
            data: eval(b)
        },
        {
            name: '动态分红',
            // data: [1.2, 1.5, 3.6, 2.5, 1.2, 1.5]
            data: eval(c)
        }]
    });
    
    
    //柱状
    $(function () {
	    $('#containerz').highcharts({
	        chart: {
	            type: 'column'
	        },
	        title: {
	            text: '各月收入图'
	        },
	        subtitle: {
	            text: null
	        },
			exporting: {
	            enabled:false
			},
	        xAxis: {
	            // categories: [
	            //     '201601',
	            //     '201602',
	            //     '201603',
	            //     '201604',
	            //     '201605',
	            //     '201606',
	            //     '201607',
	            //     '201608',
	            //     '201609',
	            //     '201610',
	            //     '201611',
	            //     '201612'
	            // ],
	            categories: eval(d),
	            crosshair: true
	        },
	        yAxis: {
	            min: 0,
	            title: {
	                text: '单位 (元)'
	            }
	        },
	        tooltip: {
	            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
	            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
	            '<td style="padding:0"><b>{point.y:.1f} 元</b></td></tr>',
	            footerFormat: '</table>',
	            shared: true,
	            useHTML: true
	        },
	        plotOptions: {
	            column: {
	                pointPadding: 0.2,
	                borderWidth: 0
	            }
	        },
	        credits:{
			     enabled:false 
			},
	        series: [{
	            name: '静态分红',
	            // data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
	            data: eval(e)
	        }, {
	            name: '动态分红',
	            // data: [83.6, 78.8, 98.5, 93.4, 106.0, 84.5, 105.0, 104.3, 91.2, 83.5, 106.6, 92.3]
	            data: eval(f)
	        }]
	    });
	});
});